Friday
}
Day constant default_value = Day.Friday;
function retrieveDefaultDate() public pure returns(Day) {
return default_value;
}
}
A. Thursday
B. Friday
C. 4
D. 5
Q66: What is/are true regarding the following Contract?
// SPDX-License-Identifier: SOME IDENTIFIER
pragma solidity ^0.8.10;
contract Keccak256Contract {
function callKeccak256() public pure returns(bytes32 result)
{
return keccak256(“Sample Contract”);
}
}
A. The output would compute the Ethereum-SHA-3 (Keccak-256)
hash of the input value “Sample Contract” string
B. The
output
would
be
“0:
bytes32:
result
0xe95e5acfb5f6d7b6773cf501d3a978d6be609d54a203215cd1
95bebe4158ef17”
C. The output would never change, no matter how many times we
deploy and at what time interval we run it
D. All of the above
Q67: What would be the issue in the following contract?
// SPDX-License-Identifier: SOME IDENTIFIER